package com.ctgu.elasticsearch.service;

import com.ctgu.elasticsearch.entity.UserEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ctgu.elasticsearch.utils.ApiResult;

import java.io.IOException;

/**
* @author Alex2
* @description 针对表【t_user】的数据库操作Service
* @createDate 2025-08-13 17:20:01
*/
public interface UserService extends IService<UserEntity> {
    ApiResult searchUsers(Integer pageNum, Integer pageSize, String keyword) throws IOException;

    ApiResult searchUsersHighLight(Integer pageNum, Integer pageSize, String keyword) throws IOException;

    ApiResult insertUser(String username, String password, Integer age) throws IOException;

    ApiResult updateUser(Integer id, String username, String password, Integer age) throws IOException;

    ApiResult deleteUser(Integer id) throws IOException;
}
